namespace CRMG.Container.Source.BO
{
    using Guru.Framework.Base;
    using System;

    public class AvailableTrain : AbstractBaseBO
    {
        private int _OBJID;
        public int OBJID
        {
            set { _OBJID = value; AddChangeList("OBJID"); }
            get { return _OBJID; }
        }
        private int _TrainId;
        public int TrainId
        {
            set { _TrainId = value; AddChangeList("TrainId"); }
            get { return _TrainId; }
        }
        private int _UserId;
        public int UserId
        {
            set { _UserId = value; AddChangeList("UserId"); }
            get { return _UserId; }
        }
        private int _TrainClassId;
        public int TrainClassId
        {
            set { _TrainClassId = value; AddChangeList("TrainClassId"); }
            get { return _TrainClassId; }
        }
        private int _TrainAmount;
        public int TrainAmount
        {
            set { _TrainAmount = value; AddChangeList("TrainAmount"); }
            get { return _TrainAmount; }
        }
        private DateTime _StartTime;
        public DateTime StartTime
        {
            set { _StartTime = value; AddChangeList("StartTime"); }
            get { return _StartTime; }
        }
        private DateTime _EndTime;
        public DateTime EndTime
        {
            set { _EndTime = value; AddChangeList("EndTime"); }
            get { return _EndTime; }
        }
        private int _CourseType;
        public int CourseType
        {
            set { _CourseType = value; AddChangeList("CourseType"); }
            get { return _CourseType; }
        }

        public string GetTable()
        {
            return "AvailableTrain";
        }

        public string GetIdColumn()
        {
            return "OBJID";
        }
    }
}
